package com.lbc.dao.custom;

import com.lbc.bean.entity.DonateProject;
import com.lbc.bean.vo.DonateInfoVO;
import com.lbc.bean.vo.DonateRecordVO;
import com.lbc.bean.vo.DonateStatisticsVO;
import com.lbc.dao.generator.DonateMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xyl
 * @date 2021-03-19 20:22
 */
public interface CtDonateMapper extends DonateMapper {
    int updateStateByNumber(int state,String number);

    int selectDonateCount(Integer type,Integer donateProjectId);

    float selectMaxMoney(Integer type,Integer donateProjectId);

    List<DonateInfoVO> selectDonateInfoByProjectId(Integer type,Integer donateProjectId);

    DonateStatisticsVO selectDonateStatistics();

    List<DonateRecordVO> selectDonateRecord(Integer userId);

    float selectDonateMoney(@Param("type") int type,@Param("donateProjectId")  Integer donateProjectId);
}
